package com.iap.admin.context
{
	import com.iap.admin.command.ImageCommand;
	import com.iap.admin.mediator.ImageMediator;
	import com.iap.admin.service.IImageService;
	import com.iap.admin.service.ImageService;
	import com.iap.admin.signal.ImageRequestSignal;
	import com.iap.admin.view.ImageView;
	import com.iap.app.data.AppData;
	import com.iap.app.data.IAppData;
	
	import flash.display.DisplayObjectContainer;
	
	import org.robotlegs.mvcs.SignalContext;
	
	public class ImageContext extends SignalContext
	{
		override public function startup():void
		{
			injector.mapSingletonOf(IImageService, ImageService);
			injector.mapSingletonOf(IAppData, AppData);
			
			signalCommandMap.mapSignalClass(ImageRequestSignal, ImageCommand);
			
			mediatorMap.mapView(ImageView, ImageMediator);
		}
	}
}